package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.BannerMapper;
import com.netease.nie.model.Banner;

/**
 * 
 * @author KingsHunter
 * @createDate July 2rd,2016
 *
 */
@Repository
public class BannerDao {

	@Resource
	private BannerMapper bannerMapper;
	
	public List<Banner> queryAllNoCustomBannerByPosition(int position) {
		return bannerMapper.queryAllNoCustomBannerByPosition(position);
	}
	
	public List<Banner> queryAllBannerByPosition(int position) {
		return bannerMapper.queryAllBannerByPosition(position);
	}
}
